<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="bootstrap.css" />
    <style>
      header {
        height: 50px;
        width: 100%;
        background-color: brown;
        color: aliceblue;
        font-weight: 900;
        font-size: 22px;
        line-height: 50px;
        div {
          width: 60%;
          margin: auto;
        }
      }
      section {
        width: 60%;
        margin: 20px auto;
        .title {
          font-size: 20px;
          font-weight: 600;
        }

        .form-control {
          /* font-size: 18px; */
          margin-top: 10px;
        }
        nav {
          font-size: 18px;
          display: flex;
          justify-content: space-between;
          line-height: 50px;
          .task {
            color: rgb(197, 57, 57);
          }

          button {
            height: 40px;
            background-color: rgb(255, 255, 255);
            color: rgb(96, 96, 96);
            border: 2px solid transparent;
            font-size: 18px;
            line-height: 40px;
          }
          .active {
            background-color: rgb(197, 57, 57);
            color: rgb(255, 255, 255);
          }
        }

        .table {
          margin-top: 10px;
          tr {
            .gray {
              color: rgb(159, 159, 159);
              text-decoration: line-through;
            }
            td {
              line-height: 30px;
            }
            td:nth-child(1) {
              width: 10%;
              align-items: center;
              input {
                width: 18px;
                height: 18px;
              }
            }
            td:nth-child(3) {
              font-size: 18px;
              opacity: 0;
              width: 5%;
              text-align: center;
              cursor: pointer;
              &:hover {
                color: rgb(197, 57, 57);
              }
            }
            &:hover td:nth-child(3) {
              opacity: 1;
            }
          }
        }
      }
    </style>
  </head>
  <body>
    <header>
      <div>任务计划列表</div>
    </header>
    <section>
      <div class="title">添加任务</div>
      <input type="email" class="form-control" placeholder="例如：吃饭睡觉" />
      <nav>
        <div class="task"><span id="tasknum">0</span>个任务未完成</div>
        <div class="tab">
          <div class="btn-group">
            <button class="active">所有任务</button>
            <button>未完成的任务</button>
            <button>完成的任务</button>
          </div>
        </div>
      </nav>
      <div class="title">任务列表</div>

      <table class="table table-hover table-striped"></table>
    </section>
    <script src="task.js"></script>
   
  </body>
</html>
